package com.xuerhua.yxt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xuerhua.yxt.dao.StudentCoachMapper;
import com.xuerhua.yxt.model.StudentCoach;
import com.xuerhua.yxt.page.Page;
import com.xuerhua.yxt.reqVo.CoachQueryVO;
import com.xuerhua.yxt.service.IStudentCoachService;
import com.xuerhua.yxt.view.StudentCoachView;

@Service("studentCoachService")
public class StudentCoachServiceImpl implements IStudentCoachService {

	@Autowired
	private StudentCoachMapper studentCoachMapper;
	
	@Override
	public int insertSelective(StudentCoach record) {
		return studentCoachMapper.insertSelective(record);
	}

	@Override
	public StudentCoach selectByPrimaryKey(Integer id) {
		return studentCoachMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(StudentCoach record) {
		return studentCoachMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<StudentCoachView> selectCoachListByPage(Page<StudentCoachView> page) {
		return studentCoachMapper.selectCoachListByPage(page);
	}
	
	@Override
	public List<StudentCoachView> selectCoachListForClassByPage(Page<StudentCoachView> page) {
		return studentCoachMapper.selectCoachListForClassByPage(page);
	}

	@Override
	public List<StudentCoachView> selectPendingCoachListForTeacher(StudentCoach studentCoach) {
		return studentCoachMapper.selectPendingCoachListForTeacher(studentCoach);
	}

	@Override
	public List<StudentCoachView> selectCoachByParam(CoachQueryVO queryVO) {
		return studentCoachMapper.selectCoachByParam(queryVO);
	}

	@Override
	public List<StudentCoachView> selectCoachListForStudentByPage(Page<StudentCoachView> page) {
		return studentCoachMapper.selectCoachListForStudentByPage(page);
	}

}
